<?
// function getIp() {
//     $ip = $_SERVER['REMOTE_ADDR'];
//     if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
//         $ip = $_SERVER['HTTP_CLIENT_IP'];
//     } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
//         $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
//     }
//     return $ip;
// 
// }

echo "Nootka:0.8.77-beta;
     - JACK switch added (default is off)
     - polished and fixed
     
";
    echo "
    ";

$ip = $_SERVER['REMOTE_ADDR'];
$agent = $_SERVER['HTTP_USER_AGENT'];

// -- Piwik Tracking API init --
$token_auth = "3mwh26Ff53xENr2z8LtOSekQn1Tc5uX2";
require_once "PiwikTracker.php";
// PiwikTracker::$URL = 'nootka.sourceforge.net';
$t = new PiwikTracker( $idSite = 1, 'http://sourceforge.net/apps/piwik/nootka/');
$t->setUserAgent( $agent );
$t->setTokenAuth( $token_auth );
$t->setIp( $ip );
$t->setUrl( $url = 'http://nootka.sourceforge.net/ch/version.php' );
$t->doTrackPageView('Updates');
?>